﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="XiaoShou_FuKuan_In.aspx.cs" Inherits="syc.Sale.XiaoShou_FuKuan_In" %>

<head runat="server">
    <title></title>
    
    </head>
<body>
    <form id="form1" runat="server">
     <script type="text/javascript" language="javascript" src="/common.js"></script>
    <link rel="stylesheet" href="/js/autocomplete/jquery.autocomplete.css" type="text/css" />
<script src="/js/autocomplete/lib/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/autocomplete/lib/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="/js/autocomplete/jquery.autocomplete.js"></script>
    <div id="wintop" class="wintop"><span lang="zh-cn">销售收款登记</span></div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel" Height="26px" 
         Width="1000px">
            <asp:Button ID="Button_Finish" runat="server" CssClass="button" 
                onclick="Button_Finish_Click" Text="保 存" UseSubmitBehavior="False" 
                Width="46px" />
            <span lang="zh-cn">&nbsp; </span>
            <asp:Button ID="Button_Modify" runat="server" Text="返回" CssClass="button" 
                Width="46px" UseSubmitBehavior="False" onclick="Button_Modify_Click"/>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" CssClass="panel2" Width="1000px">
            <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
        </asp:Panel>   </div>
<div align="center">
<script>    putBillHead();</script>
        <div id="Title" align="center" ><span lang="zh-cn"><h2><u>销售收款<%=Request.QueryString["title"] %></u></h2></div>     
      
		<table border="1"   align="center"
         style="font-size:14px; padding:20px;" >
  <tr>
    <td class="style10">合同编号：                </td>
    <td class="style13">
        <asp:TextBox ID="HeTong" runat="server" AutoPostBack="true" 
            ontextchanged="HeTong_TextChanged" Width="140px"></asp:TextBox>
      </td>
    <td class="style9">付款日期：</td>
    <td class="style12"><asp:TextBox ID="RiQi" runat="server" CssClass="intxt1" 
                        Width="110px"></asp:TextBox>
                        <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi').value, document.getElementById('RiQi'));" /></td>
    <td class="style11">付款单号：</td>
    <td class="style7"><asp:TextBox ID="FaPiaoHao" 
                    runat="server" Width="125px" ForeColor="Red">00</asp:TextBox></td>
  </tr>
  <tr>
    <td class="style10">供货商：</td>
    <td class="style13"><asp:TextBox ID="GongHuoDanWei" runat="server" Width="80px" 
                     ReadOnly="True" CssClass="blank_center"></asp:TextBox></td>
    <td class="style9">应收金额：</td>
    <td class="style12"><asp:TextBox ID="YingFuKuan" runat="server" 
                     CssClass="blank_center" ReadOnly="True" Width="80px">0.00</asp:TextBox></td>
    <td class="style11">付款方式：</td>
    <td class="style7"><asp:DropDownList ID="FuKuan" runat="server">
                     <asp:ListItem>现金</asp:ListItem>
                     <asp:ListItem>电汇</asp:ListItem>
                     <asp:ListItem>支票</asp:ListItem>
                     <asp:ListItem>转账</asp:ListItem>                     
                     </asp:DropDownList></td>
  </tr>
  <tr>
    <td class="style10">实到累计：</td>
    <td class="style13"><asp:TextBox ID="YiFuJine" 
                     runat="server" Width="80px" ReadOnly="True" CssClass="blank_center">0.00</asp:TextBox></td>
    <td class="style9">未到金额：</td>
    <td class="style12"><asp:TextBox ID="WeiFuJine" 
                     runat="server" Width="80px" ReadOnly="True" CssClass="blank_center">0.00</asp:TextBox></td>
    <td class="style11">本次到款</td>
    <td class="style7">
	<asp:TextBox ID="BenCiFuKuan" 
                     runat="server" Width="125px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0.00</asp:TextBox> </td>
  </tr>
  <tr>
    <td class="style10"><span lang="zh-cn" xml:lang="zh-cn">备注信息：</span> </td>
    <td colspan="5"><asp:TextBox ID="BeiZhu" runat="server"
                        Width="480px"></asp:TextBox></td>
    
  </tr>
</table>
        </br>
  
</div>
      <script>          putBillFoot();</script>
    </form>
    <script type="text/javascript">
        $(document).ready(function() {
            var today = new Date();
            var year = today.getYear();
            $("#HeTong").autocomplete("XiaoShouHT.aspx?year=" + year, {
                minChars: 0,
                max: 5,
                autoFill: true,
                mustMatch: true,
                matchContains: true,
                scrollHeight: 220,
                formatItem: function(data, i, total) {
                    return "<I>" + data[0] + "</I>";
                },
                formatMatch: function(data, i, total) {
                    return data[0];
                },
                formatResult: function(data) {
                    return data[0];
                }
            }
            ).result(function() { __doPostBack('HeTong', ''); })
            ;
        });	
  </script>
</body>
</html>
